Fringe analysis of synchronized parallel insertion algorithms in 2-3 Trees

نویسندگان

  • Ricardo A. Baeza-Yates
  • Joaquim Gabarró
  • Xavier Messeguer
چکیده

Fringe analysis uses the distribution of bottom subtrees or fringe of search trees under the assumption of random insertion of keys, yielding an average case analysis of the fringe. The results in the fringe give upper and lower bounds for several measures for the whole tree. We are interested in the fringe analysis of the synchronized parallel insertion algorithms of Paul, Vishkin, and Wagener (PVW) on 2–3 trees. This algorithm inserts k keys with k processors into a tree of size n with time O(log n + log k). As the direct analysis of this algorithm is very di:cult we tackle this problem by introducing a new family of algorithms, denoted by MacroSplit algorithms, and our main theorem proves that two algorithms of this family, denoted MaxMacroSplit and MinMacroSplit, bound the behavior of the fringe in the PVW algorithm. Previous work deals with the fringe analysis of sequential algorithms, but this type of analysis was still an open problem for parallel algorithms on search trees. We extend fringe analysis to parallel algorithms and we get a rich mathematical structure giving new interpretations even in the sequential case. We prove that random insertion of keys generates a binomial distribution, that the synchronized insertion of keys can be modeled by a Markov chain, and that the coe:cients of the transition matrix of the Markov chain are related to the expected local behavior of our algorithm. Finally, we show that the coe:cients of the power expansion of this matrix over Partially supported by: (i) ACI-CONICYT grant through the Catalunya–Chile Cooperation Program (DOG 2320-30.1.1997), (ii) AMYRI VII.13 project (CYTED), (iii) Fondecyt grant 199-0627 (CONICYT), (iv) the IST program of the EU under contract number IST-1999-14186 (ALCOM-FT), (v) Spanish CICYT under grant TIC1999-0754-C03-02 (Mallba), and (vi) Spanish CICYT under grant TIC-2000-1970. ∗Corresponding author. E-mail address: [email protected] (R. Baeza-Yates). 0304-3975/03/$ see front matter c © 2002 Elsevier Science B.V. All rights reserved. PII: S0304 -3975(02)00318 -3 232 R. Baeza-Yates et al. / Theoretical Computer Science 299 (2003) 231–271 (n+1)−1 are the binomial transform of the expected local behavior of the algorithm. We Inally show that the fringe of the PVW algorithm asymptotically converges to the sequential case. c © 2002 Elsevier Science B.V. All rights reserved.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Fringe Analysis of Synchronized Parallel Algorithms on 2-3 Trees

We are interested in the fringe analysis of synchronized parallel insertion algorithms on 2{3 trees, namely the algorithm of W. Paul, U. Vishkin and H. Wagener (PVW). This algorithm inserts k keys into a tree of size n with parallel time O(log n + log k). Fringe analysis studies the distribution of the bottom subtrees and it is still an open problem for parallel algorithms on search trees. To t...

متن کامل

The Theory of Fringe Analysis and Its Application to 2-3 Trees and B-Trees

A fringe analysis method based on a new way of describing the composition of a fringe in terms of tree collections is presented. It is shown that the derived matrix recurrence relation converges to the solution of a linear system involving the transition matrix, even when the transition matrix has eigenvalues with multiplicity greater than one. As a consequence, bounds and some exact results on...

متن کامل

Parallel Generation of t-ary Trees

A parallel algorithm for generating t-ary tree sequences in reverse B-order is presented. The algorithm generates t-ary trees by 0-1 sequences, and each 0-1 sequences is generated in constant average time O(1). The algorithm is executed on a CREW SM SIMD model, and is adaptive and cost-optimal. Prior to the discussion of the parallel algorithm a new sequential generation with O(1) average time ...

متن کامل

Fringe Analysis of 2-3 Trees with Lazy Parent Split Fringe Analysis of 2-3 Trees with Lazy Parent Split

In B-trees with Lazy Parent Split (LPS) parent splits are postponed until a future access of the latter node. This way, the number of splits during an insert is decreased and the number of locks is also decreased. Consequently, better concurrency is achieved. In this paper we study 2-3 trees with LPS. We use fringe analysis to obtain bounds on some performance measures of 2-3 trees with LPS. Th...

متن کامل

A Unified Approach to Concurrent and Parallel Algorithms on Balanced Data Structures (Invited Paper)

Concurrent and parallel algorithms are different. However, in the case of dictionaries, both kinds of algorithms share many common points. We present a unified approach emphasizing these points. It is based on a careful analysis of the sequential algorithm, extracting from it the more basic facts, encapsulated later on as local rules. We apply the method to the insertion algorithms in AVL trees...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Theor. Comput. Sci.

دوره 299  شماره 

صفحات  -

تاریخ انتشار 2003